package com.awenhui.demo.demo.thread;

import lombok.SneakyThrows;
import org.apache.poi.hpsf.GUID;

import java.util.UUID;

/**
 * @author yuxf
 * @version 1.0
 * @date 2021/6/29 17:08
 */
public class MyRun implements Runnable {
    @SneakyThrows
    @Override
    public void run() {
        int i=10000;

        while(true)
        {
            Thread.sleep(100);

            if(i<1)break;
            System.out.println("MyRun..."+ i);
            i--;
        }

    }

    public static void main(String[] args) {
        Thread thread1=new Thread(new MyRun());
        thread1.start();
       thread1.setDaemon(true);
    }
}
